package com.api.shopapi.service.impl;

import com.api.shopapi.entity.NursingRecordImg;
import com.api.shopapi.mapper.NursingRecordImgMapper;
import com.api.shopapi.service.NursingRecordImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("NursingRecordImgServiceImplOne")
public class NursingRecordImgServiceImplOne implements NursingRecordImgService {

    @Autowired
    private NursingRecordImgMapper nursingRecordImgMapper;

    @Override
    public
    int insert(NursingRecordImg nursingRecordImg){
        return nursingRecordImgMapper.insert(nursingRecordImg);
    }

    @Override
    public
    int delete( String nursingRecordImgCode){
        return nursingRecordImgMapper.delete(nursingRecordImgCode);
    }

    @Override
    public
    int update( NursingRecordImg nursingRecordImg){
        return nursingRecordImgMapper.update(nursingRecordImg);
    }

    @Override
    public
    NursingRecordImg getByNursingRecordImgCode(String nursingRecordImgCode){
        return nursingRecordImgMapper.getByNursingRecordImgCode(nursingRecordImgCode);
    }

    @Override
    public
    List<NursingRecordImg> listByNursingRecordCode(String nursingRecordCode){
        return nursingRecordImgMapper.listByNursingRecordCode(nursingRecordCode);
    }


}
